package com.luo.service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.Nullable;

import com.luo.demo.LoveActivity;
import com.luo.demo.R;
import com.luo.utils.NotifyUtil;

/**
 * Created by Administrator on 2017/3/24.
 */

public class MyService extends Service {

    class MyBinder extends Binder{

    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return new MyBinder();
    }

    @Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
        Intent i = new Intent(getApplicationContext(), LoveActivity.class);
        NotifyUtil.notify(getApplicationContext(),i,"标题","ticker","内容", R.mipmap.ic_launcher);
    }
}
